<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Space Manager: src/ccExtras/cpShapeNode.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Space Manager
   &#160;<span id="projectnumber">0.2.0</span>
   </div>
   <div id="projectbrief">Objective-C wrapper around chipmunk</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('cp_shape_node_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">cpShapeNode.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="cp_shape_node_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*********************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *  </span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  cpShapeNode.h</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Provide Drawing for Shapes</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  http://www.mobile-bros.com</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  Created by Robert Blackwood on 02/22/2009.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  Copyright 2009 Mobile Bros. All rights reserved.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> **********************************************************************/</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#import &quot;cocos2d.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#import &quot;chipmunk.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#import &quot;<a class="code" href="cp_c_c_node_8h.html">cpCCNode.h</a>&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">//Utility draw functions</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#if (COCOS2D_VERSION &lt; 0x00020000)</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp_shape_node_8h.html#a0f405e8f12cbb9ca21f4d6004b2cb900">cpShapeNodePreDrawState</a>();</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp_shape_node_8h.html#a0f405e8f12cbb9ca21f4d6004b2cb900">cpShapeNodePreDrawState</a>(CCGLProgram* shader);</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp_shape_node_8h.html#a5e4e71c5f63b44b76a0dca3683babd86">cpShapeNodePostDrawState</a>();</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">//draw a shape with the correct pre/post states</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp_shape_node_8h.html#a250e06cadf832d2777efc5402f5e9abc">cpShapeNodeDrawAt</a>(cpShape *shape, CGPoint pt, CGPoint rotation);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">//draw a shape without the pre/post states</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">//Use the pre/post calls above to draw many shapes at once</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp_shape_node_8h.html#a6636ecbf1311f9bc23fe6bcca650fb21">cpShapeNodeEfficientDrawAt</a>(cpShape *shape, CGPoint pt, CGPoint rotation);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html">   37</a></span>&#160;<span class="keyword">@interface </span><a class="code" href="interfacecp_shape_node.html">cpShapeNode</a> : <a class="code" href="interfacecp_c_c_node.html">cpCCNode</a> &lt;CCRGBAProtocol&gt;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;{</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">@protected</span>  </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    ccColor4B <a class="code" href="interfacecp_shape_node.html#a7360a21dca37d9901c831b12bbf84f3d">_color</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a7360a21dca37d9901c831b12bbf84f3d">   41</a></span>&#160;    </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    cpFloat <a class="code" href="interfacecp_shape_node.html#a307f0d0001657c99871f13f2cbcb50b8">_pointSize</a>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a307f0d0001657c99871f13f2cbcb50b8">   43</a></span>&#160;    cpFloat <a class="code" href="interfacecp_shape_node.html#ab93f3589ac4b28c714fb401478c91df3">_lineWidth</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#ab93f3589ac4b28c714fb401478c91df3">   44</a></span>&#160;    BOOL    <a class="code" href="interfacecp_shape_node.html#a902d3ac87dbe8996f4e50567f9083f22">_smoothDraw</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a902d3ac87dbe8996f4e50567f9083f22">   45</a></span>&#160;    BOOL    <a class="code" href="interfacecp_shape_node.html#a8e5cba85185b3436e9459e3ba12051bb">_fillShape</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a8e5cba85185b3436e9459e3ba12051bb">   46</a></span>&#160;    BOOL    <a class="code" href="interfacecp_shape_node.html#a471b7f602bf8451b59e0d1e4a3a74067">_drawDecoration</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a471b7f602bf8451b59e0d1e4a3a74067">   47</a></span>&#160;    BOOL    <a class="code" href="interfacecp_shape_node.html#aa0c099e6cfe56bd876ead9cf1fffc526">_cacheDraw</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#aa0c099e6cfe56bd876ead9cf1fffc526">   48</a></span>&#160;    </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="comment">//cache</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    cpShapeType <a class="code" href="interfacecp_shape_node.html#ac6218d4537ebe09c8ca0d7be24ad3c11">_lastType</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#ac6218d4537ebe09c8ca0d7be24ad3c11">   51</a></span>&#160;    GLfloat     *<a class="code" href="interfacecp_shape_node.html#a81c79abe15ce4585c5a1e825b476d130">_vertices</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a81c79abe15ce4585c5a1e825b476d130">   52</a></span>&#160;    <span class="keywordtype">int</span>         <a class="code" href="interfacecp_shape_node.html#a32a8a55a17f92ed385dd9ddaedf68f2d">_vertices_count</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a32a8a55a17f92ed385dd9ddaedf68f2d">   53</a></span>&#160;        </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="comment">//this is only useful if there is more than one shape</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="comment">//on a body, and will only be set if the user calls setShape</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    cpShape                 *<a class="code" href="interfacecp_shape_node.html#aa4a9fdb7bc40c1665ad45e11e284f09b">_shape</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#aa4a9fdb7bc40c1665ad45e11e284f09b">   57</a></span>&#160;    </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="comment">//opengl es 2.0</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">#if (COCOS2D_VERSION &gt;= 0x00020000)  </span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor"></span>    <span class="keywordtype">int</span> _colorLocation;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordtype">int</span> _pointSizeLocation;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keyword">@property</span> (readwrite, assign) ccColor3B color;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#aab94de70a6e5cf63b14288319de5ab12">   67</a></span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="keyword">@property</span> (readwrite, assign) GLubyte opacity;</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a66d07fd77e1005368bac4feedd285302">   70</a></span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keyword">@property</span> (readwrite, assign) cpFloat pointSize;    <span class="comment">//### This isn&#39;t used..?</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#aa6b00c07c1218befaf8449d1f214c550">   73</a></span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keyword">@property</span> (readwrite, assign) cpFloat lineWidth;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#aef01a1f1cc561035bc45fd275587f45e">   76</a></span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">@property</span> (readwrite, assign) BOOL smoothDraw;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a5fb9e470d08c0e93fdf7a1024a71a560">   80</a></span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keyword">@property</span> (readwrite, assign) BOOL fillShape;</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a22f7806e00778e55d1325e0df79b61f0">   84</a></span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keyword">@property</span> (readwrite, assign) BOOL drawDecoration;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a70756073c7497fa2a3d2a3e5664bc535">   88</a></span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keyword">@property</span> (readwrite, assign) BOOL cacheDraw;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="interfacecp_shape_node.html#a31f376154c9b02f7595e77800380f779">   92</a></span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword">@end</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keyword">@class</span> <a class="code" href="interfacecp_shape_texture_batch_node.html">cpShapeTextureBatchNode</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keyword">@interface </span><a class="code" href="interfacecp_shape_texture_node.html">cpShapeTextureNode</a> : <a class="code" href="interfacecp_shape_node.html">cpShapeNode</a></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html">   98</a></span>&#160;{</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    CCTexture2D             *<a class="code" href="interfacecp_shape_texture_node.html#a531e31995247ee4fa7a23f0234773e7c">_texture</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html#a531e31995247ee4fa7a23f0234773e7c">  100</a></span>&#160;    <a class="code" href="interfacecp_shape_texture_batch_node.html">cpShapeTextureBatchNode</a> *<a class="code" href="interfacecp_shape_texture_node.html#ad86366f0379764cea0e78989764577ed">_batchNode</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html#ad86366f0379764cea0e78989764577ed">  101</a></span>&#160;    </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    CGPoint <a class="code" href="interfacecp_shape_texture_node.html#a2d5d535d487dee698c138535fdd74496">_textureOffset</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html#a2d5d535d487dee698c138535fdd74496">  103</a></span>&#160;    <span class="keywordtype">float</span>   <a class="code" href="interfacecp_shape_texture_node.html#ab80f7c56aa20214771a0ba8a9392f944">_textureRotation</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html#ab80f7c56aa20214771a0ba8a9392f944">  104</a></span>&#160;    </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="comment">//cache</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    GLfloat     *<a class="code" href="interfacecp_shape_texture_node.html#a43c5cd9ceb8c97cefa7320a61452e30c">_coordinates</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html#a43c5cd9ceb8c97cefa7320a61452e30c">  107</a></span>&#160;    ccColor4B   *<a class="code" href="interfacecp_shape_texture_node.html#ac1b7d4d1e12697c795a1b6f13c64739e">_colors</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html#ac1b7d4d1e12697c795a1b6f13c64739e">  108</a></span>&#160;}</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="keyword">@property</span> (readwrite, retain) CCTexture2D   *texture;</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html#a0d6034e3ab2575617bdcbd02fa2c4bed">  111</a></span>&#160;<span class="keyword">@property</span> (readwrite, assign) CGPoint       textureOffset;</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html#a10bfe41b31456fc2936c9b553797b0be">  112</a></span>&#160;<span class="keyword">@property</span> (readwrite, assign) <span class="keywordtype">float</span>         textureRotation;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_node.html#a79580b1ef8c219f4eb9e3b0eac5ca7f1">  113</a></span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;+ (id) nodeWithShape:(cpShape*)shape file:(NSString*)file;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;+ (id) nodeWithShape:(cpShape*)shape texture:(CCTexture2D*)texture;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;+ (id) nodeWithShape:(cpShape*)shape batchNode:(<a class="code" href="interfacecp_shape_texture_batch_node.html">cpShapeTextureBatchNode</a>*)batchNode;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;- (id) initWithShape:(cpShape*)shape file:(NSString*)file;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;- (id) initWithShape:(cpShape*)shape texture:(CCTexture2D*)texture;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;- (id) initWithShape:(cpShape*)shape batchNode:(<a class="code" href="interfacecp_shape_texture_batch_node.html">cpShapeTextureBatchNode</a>*)batchNode;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="keyword">@end</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="keyword">@interface </span><a class="code" href="interfacecp_shape_texture_batch_node.html">cpShapeTextureBatchNode</a> : CCNode</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_batch_node.html">  135</a></span>&#160;{</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    CCTexture2D *<a class="code" href="interfacecp_shape_texture_batch_node.html#aa282966ab682bf9e3e86fa850a979c2d">_texture</a>;</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_batch_node.html#aa282966ab682bf9e3e86fa850a979c2d">  137</a></span>&#160;}</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="keyword">@property</span> (readwrite, retain) CCTexture2D *texture;</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="code" href="interfacecp_shape_texture_batch_node.html#af0aa7c5ee2fc03c8a2aa8974dbc0c38e">  140</a></span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;+ (id) nodeWithFile:(NSString*)file;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;+ (id) nodeWithTexture:(CCTexture2D*)texture;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;- (id) initWithFile:(NSString*)file;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;- (id) initWithTexture:(CCTexture2D*)texture;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="keyword">@end</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_60245ae547de53f64c5b49bccdf7e359.html">ccExtras</a></li><li class="navelem"><a class="el" href="cp_shape_node_8h.html">cpShapeNode.h</a></li>
    <li class="footer">Generated on Sun Sep 16 2012 13:09:50 for Space Manager by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
